package com.restaurant.bean;

/**
 * 用户
 * @author OUOrder
 */
public class User {

    //用户id
    private int uid;
    //用户邮箱
    private String email;
    //用户手机号
    private String phoneNumber;
    //用户姓名
    private String username;
    //用户密码
    private String password;
    //性别
    private Byte sex;
    //地址
    private String address;
    //个性签名
    private String signature;
    //余额
    private double balance;


  public User() {
      this.sex = 0;
  }
  public User(int uid, String email, String phoneNumber, String username, String password, Byte sex, String address, String signature, double balance) {
    this.uid = uid;
    this.email = email;
    this.phoneNumber = phoneNumber;
    this.username = username;
    this.password = password;
    this.sex = sex;
    this.address = address;
    this.signature = signature;
    this.balance = balance;
  }

  public User(String phoneNumber, String password) {
	  this.phoneNumber = phoneNumber;
	  this.password = password;
}
public int getUid() {
    return uid;
  }

  public void setUid(int uid) {
    this.uid = uid;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }


  public String getPhoneNumber() {
    return phoneNumber;
  }

  public void setPhoneNumber(String phoneNumber) {
    this.phoneNumber = phoneNumber;
  }


  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }


  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }


  public Byte getSex() {
    return sex;
  }

  public void setSex(Byte sex) {
    this.sex = sex;
  }


  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }


  public String getSignature() {
    return signature;
  }

  public void setSignature(String signature) {
    this.signature = signature;
  }


  public double getBalance() {
    return balance;
  }

  public void setBalance(double balance) {
    this.balance = balance;
  }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", email='" + email + '\'' +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", sex=" + sex +
                ", address='" + address + '\'' +
                ", signature='" + signature + '\'' +
                ", balance=" + balance +
                '}';
    }
}
